﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="DeptAdd.aspx.cs" Inherits="Mang24k99.Web.OrgList.DeptAdd" Title="科视部门维护" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
       <script type="text/javascript">
          //过滤空格
          function verify(obj)
          {
              if(obj.keyCode==32 )
              {
                  obj.returnValue = false;
              } 
          }
    </script>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="34" align="center" background="../Images/bg1.jpg">
      <tr>
        <td align="right"><a href="GoldCorpAdd.aspx" class="col">金商</a></td>
        <td align="right"><a href="BankAdd.aspx" class="col">银行</a></td>
        <td align="right"><a href="DeptAdd.aspx" class="col_on">科视</a></td>
        <td>&nbsp; &nbsp; &nbsp; &nbsp; </td>
      </tr>
    </table>
 
    <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#BED6A6">
      <tr>
        <td valign="top"><table width="334" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#BED6A6"
            style="border-collapse: collapse">
          <tr>
            <td width="103" class="tb_title1"> 部门名称</td>
            <td width="225" class="tb_txt1">
                <asp:TextBox ID="txtDeptName" runat="server"  MaxLength="20"></asp:TextBox>
            </td>
			<td>
				<asp:TextBox ID="txtOrgNO" runat="server" Style="display: none"></asp:TextBox>
			</td>
          </tr>
          <tr>
            <td width="103" class="tb_title1">是否授权机构</td>
            <td width="225" class="tb_txt1">
                <asp:RadioButtonList ID="rbtnListGrant" runat="server" TextAlign="Right" 
				RepeatDirection="Horizontal" >
				<asp:ListItem Text="授权机构" Value="1" Selected="True"></asp:ListItem>
				<asp:ListItem Text="非授权机构" Value="0"></asp:ListItem>
			</asp:RadioButtonList>
            </td>
			<td>
			</td>
          </tr>
          <caption>
              <div align="left"><span class="nav">新增部门</span> </div>
          </caption>
          
        </table>    </td>
      </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="50%" align="center">
      <tr>
        <td align="center">
            <asp:Button ID="btnSave" runat="server"  CssClass ="form_btn" Text="新增" onclick="btnSave_Click" /></td>
        <td align="center">&nbsp;</td>
        <td align="center">
            <asp:Button ID="btnCancel" runat="server" Text="取消"  CssClass="form_btn"
                onclick="btnCancel_Click" /></td>
      </tr>
    </table> 
 <div>
        <asp:GridView ID="grdList" runat="server" Width="100%" OnSelectedIndexChanged="grdList_SelectedIndexChanged"
            OnRowDeleting="grdList_RowDeleting" AutoGenerateColumns="False">
            <HeaderStyle CssClass="tb_title2" />
            <RowStyle CssClass="tb_txt2" />
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex+1%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="OrgnizeNO" HeaderText="机构编号" />
                <asp:BoundField DataField="OrgnizeName" HeaderText="机构名称" />
                <asp:BoundField DataField="InputTime" HeaderText="创建日期" />
                <asp:ButtonField ButtonType="link" CommandName="Select" HeaderText="编辑" ShowHeader="True"
                    Text="编辑" />
                <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？')&quot;&gt;删除&lt;/div&gt; "  HeaderText="删除"
                   ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
